
{extend name="AdminEx/index" /}

{block name="main"}
        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                {$title}
            </h3>
            <ul class="breadcrumb">
                <li>
                    <a href="#">评论管理</a>
                </li>
                <li class="active"> 修改评论 </li>
            </ul>
        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <section class="panel">
                        <header class="panel-heading">
                           评论信息
                        </header>
                        <div class="panel-body">
                            <form  action="{:url('admin/Book/update',['id'=>$data.id])}" method="post" enctype="multipart/form-data" role="form" class="form-horizontal adminex-form">
                                <input type="hidden" name="_method" value="put">
                                <div class="form-group has-success">
                                    <label class="col-lg-2 control-label">ID</label>
                                    <div class="col-lg-10">
                                         <input disabled name="{$data.id}" value="{$data.id}" type="text" class="form-control">
                                    </div>
                                </div>
                                <div class="form-group has-success">
                                    <label class="col-lg-2 control-label">用户名</label>
                                    <div class="col-lg-10">
                                         <input disabled value="{$data.uname}" type="text" id="f-name" class="form-control">
                                    </div>
                                </div>
                                <div class="form-group has-success">
                                    <label class="col-lg-2 control-label">书名</label>
                                    <div class="col-lg-10">
                                        <input disabled value="{$data.dname}" type="text" id="f-name" class="form-control">
                                    </div>
                                </div>
                                <div class="form-group has-success">
                                    <label class="col-lg-2 control-label">内容</label>
                                    <div class="col-lg-10">
                                        <input name="content" value="{$data.content}" type="text" class="form-control">
                                    </div>
                                </div>
                                <div class="form-group has-success">
                                    <label class="col-lg-2 control-label">打分</label>
                                    <div class="col-lg-10">
                                        <input name="cmt" value="{$data.cmt}" type="text" class="form-control">
                                    </div>
                                </div>
                                <div class="form-group has-success">
                                    <label class="col-lg-2 control-label">回复谁</label>
                                    <div class="col-lg-10">
                                        <input disabled value="{$name.name}" type="text" id="f-name" class="form-control">
                                    </div>
                                </div>
                                <div class="form-group has-success">
                                    <label class="col-lg-2 control-label">评论时间</label>
                                    <div class="col-lg-10">
                                        <input disabled value="{$data.ctime}" type="text" id="f-name" class="form-control">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <div class="col-lg-offset-2 col-lg-10">
                                        <button class="btn btn-primary" type="submit">Submit</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </section>
                </div>
            </div>
            <div class="row">

{/block}